How to: Draw a frame around a control in a form.
Solution:
In the Form Design view, use the properties sheet to change the border style, width, and color.
NOTE 1: The 'Developers Tool' must be installed to use wizards.
1) If the Database window is not active, activate the Database window.
2) Click the 'Forms' tab in the Database window.
Forms tab
3) Select the desired form containing the picture or object from the list box. (The selected form is highlighted.)
4) Click 'Design'. (The selected form appears in the Form Design view.)
5) To frame the control using the properties sheet:
a) Select the control to contain the frame. (Handles appear around the control.)
b) Select the 'View' menu and select 'Properties'. (The properties sheet for the selected control appears.)
c) Click the 'Format' tab.
d) Click in the 'Border Style' property box. (A down arrow appears to the right of the property box.)
e) Click on the down arrow. (A drop-down list appears.)
f) Select the style of the border from the drop-down list. (The choice appears in the property box, and the new border style surrounds the control.)
NOTE: Selecting 'Transparent' will result in NO frame and a transparent control.
g) (Optional) To select a different color for the border from the 'Border Color' property box:
1] Click the 'Border Color' property box. (The Build button (...) appears to the right of the property box.)
2] Click 'Build'. (The Color dialog box appears.)
3] Select the desired color. (The color is highlighted.)
4] Click 'OK'.
h) (Optional) To change the width:
1] Click in the 'Border Width' property box. (A down arrow appears to the right of the property box.)
2] Click on the down arrow. (A drop-down list appears.)
3] Select the point size of the border from the drop-down list. (The choice appears in the property box, and the new border width appears around the control.)
6) To close the property sheet, click the 'X' button in the upper-right hand corner of the property sheet.
Click the X button to close property sheet
NOTE: The properties will be saved only when the design view is saved.
NOTE: The 'Rectangle' Toolbox button can also be used to draw a frame around a control on a form or form in Design view. However, when moving the control, the frame will not move with the control as the frame does when using the control properties.